<?php /* Smarty version Smarty-3.1.12, created on 2016-07-11 14:18:13
         compiled from "D:\phpStudy\WWW\demonew\dm\xycms\log.tpl" */ ?>
<?php /*%%SmartyHeaderCode:3231757833a25071c39-76960382%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '21b52c87be0968f26b48a437863eb452658b114b' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\demonew\\dm\\xycms\\log.tpl',
      1 => 1429337910,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3231757833a25071c39-76960382',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'page_charset' => 0,
    'copyright_author' => 0,
    'log' => 0,
    'volist' => 0,
    'total' => 0,
    'pagecount' => 0,
    'showpage' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_57833a250fb814_37053033',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_57833a250fb814_37053033')) {function content_57833a250fb814_37053033($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'D:\\phpStudy\\WWW\\demonew\\source\\core\\plugins\\modifier.date_format.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_smarty_tpl->tpl_vars['page_charset']->value;?>
" />
<title>网站日志</title>
<meta name="author" content="<?php echo $_smarty_tpl->tpl_vars['copyright_author']->value;?>
" />
<link type="text/css" rel="stylesheet" href="xycms/css/admin.css" media="screen" />
<script type='text/javascript' src='js/jquery-1.8.3.min.js'></script>
<script type='text/javascript' src='js/command.js'></script>
<script type="text/javascript" src='../data/editor/kindeditor.js'></script>
</head>
<body>
<div class="main-wrap">
  <div class="path"><p>当前位置：其他扩展<span>&gt;&gt;</span>系统日志</p></div>
  <div class="main-cont">
    <h3 class="title"> 系统操作日志</h3>
	<form action="xycms_log.php" method="post" name="myform" id="myform" style="margin:0">
	<input type="hidden" name="action" id="action" value="del" />
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table" align="center">
	  <thead class="tb-tit-bg">
	  <tr>
	    <th width="10%"><div class="th-gap">编号</div></th>
		<th width="10%"><div class="th-gap">操作人</div></th>
		<th width="12%"><div class="th-gap">操作IP</div></th>
		<th width="15%"><div class="th-gap">操作时间</div></th>
		<th><div class="th-gap">操作记录</div></th>
		<th width="10%"><div class="th-gap">删除</div></th>
	  </tr>
	  </thead>
	  <tfoot class="tb-foot-bg"></tfoot>
	  <?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['volist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['log']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
$_smarty_tpl->tpl_vars['volist']->_loop = true;
?>
	  <tr onMouseOver="overColor(this)" onMouseOut="outColor(this)">
	    <td><input name="id[]" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['volist']->value['logid'];?>
" onClick="checkItem(this, 'chkAll')" /> <?php echo $_smarty_tpl->tpl_vars['volist']->value['logid'];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['volist']->value['username'];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['volist']->value['ip'];?>
</td>
		<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['volist']->value['timeline'],"%Y/%m/%d %H:%M:%S");?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['volist']->value['content'];?>
</td>
		<td align="center"><a href="xycms_log.php?action=del&id[]=<?php echo $_smarty_tpl->tpl_vars['volist']->value['logid'];?>
" onClick="{if(confirm('确定要删除该信息?')){return true;} return false;}" class="icon-del">删除</a></td>
	  </tr>
	  <?php }
if (!$_smarty_tpl->tpl_vars['volist']->_loop) {
?>
      <tr>
	    <td colspan="6" align="center">暂无信息</td>
	  </tr>
	  <?php } ?>
	  <?php if ($_smarty_tpl->tpl_vars['total']->value>0){?>
	  <tr>
		<td align="left"><input name="chkAll" type="checkbox" id="chkAll" onClick="checkAll(this, 'id[]')" value="checkbox" />全选</td>
		<td class="hback" colspan="5" style="position:relative;"><input class="button" name="btn_del" type="button" value="删除" onClick="{if(confirm('确定删除选定信息吗!?')){$('#action').val('del');$('#myform').submit();return true;}return false;}" class="button" />
		&nbsp;&nbsp;共[ <b><?php echo $_smarty_tpl->tpl_vars['total']->value;?>
</b> ]条记录<a href="xycms_log.php?action=clearlog" id="clearlog">清空日志</a>
		<script type="text/javascript">
		  $("#clearlog").click(function(){
			  if(confirm('确定删除选定信息吗!?')){
				  return true;
			  }else{
				  return false;
			  }
		  });
		</script>
		</td>
	  </tr>
	  <?php }?>
	</table>
	</form>
	<?php if ($_smarty_tpl->tpl_vars['pagecount']->value>1){?>
	<table width='95%' border='0' cellspacing='0' cellpadding='0' align='center' style="margin-top:10px;">
	  <tr>
		<td align='center'><?php echo $_smarty_tpl->tpl_vars['showpage']->value;?>
</td>
	  </tr>
	</table>
	<?php }?>
  </div>
</div>
</body>
</html>
<?php }} ?>